package com.wxsong.authplatform.authweb.service.userrole;

import com.wxsong.authplatform.authweb.model.role.Role;
import com.wxsong.authplatform.authweb.model.userrole.UserRole;
import com.wxsong.authplatform.authweb.model.users.Users;

import java.util.List;

public interface UserRoleService {

    List<UserRole> getByUserId(Long userId);

    UserRole getById(Long id);

    int add(UserRole userRole);

    int updateInfo(Long id, Long userId, Long roleId);

    int delete(Long id);

    int deleteByUserId(Long userId);

    int modifyRoles(List<UserRole> userRoles);
}
